// Copyright (c) 2009 Luca Marrocco.
// Modified or written by Luca Marrocco for inclusion with codej.
// Licensed under the Apache License, Version 2.0 (the "License")
package codej.ast;

import static codej.ast.Option.*;
import codej.ast.*;

/** @author Luca Marrocco */
public class ForInit extends Statement {
	
	private VariableDeclaration variableDeclaration;

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public ForInit() {
	}

	public void setVariableDeclaration(VariableDeclaration variableDeclaration) {
		this.variableDeclaration = variableDeclaration;
	}

	public VariableDeclaration getVariableDeclaration() {
		return option(variableDeclaration, new VariableDeclaration());
	}

}
